package com.xinruke.hostels.reportinterfaces.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @ClassName OrderFieldVO
 * @CreateDate 2019/8/7
 * @Author FengXinQiang
 * @Version V1.0.0.0
 * @Decription 排序字段VO
 */
@ApiModel("排序字段VO")
@Data
public class OrderFieldVO {
    @ApiModelProperty("用来排序字段的别名")
    private String orderField;

    @ApiModelProperty("是否按降序排序")
    private boolean orderDesc;

    public OrderFieldVO(String orderField, boolean orderDesc) {
        this.orderField = orderField;
        this.orderDesc = orderDesc;
    }
}
